<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>Reference</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>Duplex</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Functions">Functions</a></li>
<li><a href="#Tables">Tables</a></li>
<li><a href="#Fields">Fields</a></li>
</ul>


<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
  <li><a href="../modules/Duplex.Application.html">Duplex.Application</a></li>
  <li><a href="../modules/Duplex.Applications.Effect.html">Duplex.Applications.Effect</a></li>
  <li><a href="../modules/Duplex.Applications.GridPie.html">Duplex.Applications.GridPie</a></li>
  <li><a href="../modules/Duplex.Applications.Hydra.html">Duplex.Applications.Hydra</a></li>
  <li><a href="../modules/Duplex.Applications.Instrument.html">Duplex.Applications.Instrument</a></li>
  <li><a href="../modules/Duplex.Applications.Keyboard.GridLayout.html">Duplex.Applications.Keyboard.GridLayout</a></li>
  <li><a href="../modules/Duplex.Applications.Keyboard.Layouts.HarmonicLayout.html">Duplex.Applications.Keyboard.Layouts.HarmonicLayout</a></li>
  <li><a href="../modules/Duplex.Applications.Keyboard.Layouts.IsomorphicLayout.html">Duplex.Applications.Keyboard.Layouts.IsomorphicLayout</a></li>
  <li><a href="../modules/Duplex.Applications.Keyboard.Layouts.PianoLayout.html">Duplex.Applications.Keyboard.Layouts.PianoLayout</a></li>
  <li><a href="../modules/Duplex.Applications.Keyboard.html">Duplex.Applications.Keyboard</a></li>
  <li><a href="../modules/Duplex.Applications.Matrix.html">Duplex.Applications.Matrix</a></li>
  <li><a href="../modules/Duplex.Applications.Metronome.html">Duplex.Applications.Metronome</a></li>
  <li><a href="../modules/Duplex.Applications.MidiActions.Bindings.html">Duplex.Applications.MidiActions.Bindings</a></li>
  <li><a href="../modules/Duplex.Applications.MidiActions.html">Duplex.Applications.MidiActions</a></li>
  <li><a href="../modules/Duplex.Applications.Mixer.html">Duplex.Applications.Mixer</a></li>
  <li><a href="../modules/Duplex.Applications.Mlrx.Mlrx_group.html">Duplex.Applications.Mlrx.Mlrx_group</a></li>
  <li><a href="../modules/Duplex.Applications.Mlrx.Mlrx_note.html">Duplex.Applications.Mlrx.Mlrx_note</a></li>
  <li><a href="../modules/Duplex.Applications.Mlrx.Mlrx_pos.html">Duplex.Applications.Mlrx.Mlrx_pos</a></li>
  <li><strong>Duplex.Applications.Mlrx.Mlrx_track</strong></li>
  <li><a href="../modules/Duplex.Applications.Mlrx.html">Duplex.Applications.Mlrx</a></li>
  <li><a href="../modules/Duplex.Applications.Navigator.html">Duplex.Applications.Navigator</a></li>
  <li><a href="../modules/Duplex.Applications.NotesOnWheels.html">Duplex.Applications.NotesOnWheels</a></li>
  <li><a href="../modules/Duplex.Applications.PatternCursor.html">Duplex.Applications.PatternCursor</a></li>
  <li><a href="../modules/Duplex.Applications.PatternSequence.html">Duplex.Applications.PatternSequence</a></li>
  <li><a href="../modules/Duplex.Applications.Recorder.html">Duplex.Applications.Recorder</a></li>
  <li><a href="../modules/Duplex.Applications.Repeater.html">Duplex.Applications.Repeater</a></li>
  <li><a href="../modules/Duplex.Applications.Rotate.html">Duplex.Applications.Rotate</a></li>
  <li><a href="../modules/Duplex.Applications.StepSequencer.html">Duplex.Applications.StepSequencer</a></li>
  <li><a href="../modules/Duplex.Applications.SwitchConfiguration.html">Duplex.Applications.SwitchConfiguration</a></li>
  <li><a href="../modules/Duplex.Applications.TestPad.html">Duplex.Applications.TestPad</a></li>
  <li><a href="../modules/Duplex.Applications.TrackSelector.html">Duplex.Applications.TrackSelector</a></li>
  <li><a href="../modules/Duplex.Applications.Transport.html">Duplex.Applications.Transport</a></li>
  <li><a href="../modules/Duplex.Applications.UIButtonTest.html">Duplex.Applications.UIButtonTest</a></li>
  <li><a href="../modules/Duplex.Applications.XYPad.html">Duplex.Applications.XYPad</a></li>
  <li><a href="../modules/Duplex.Automation.html">Duplex.Automation</a></li>
  <li><a href="../modules/Duplex.Browser.html">Duplex.Browser</a></li>
  <li><a href="../modules/Duplex.BrowserProcess.html">Duplex.BrowserProcess</a></li>
  <li><a href="../modules/Duplex.Canvas.html">Duplex.Canvas</a></li>
  <li><a href="../modules/Duplex.CanvasPoint.html">Duplex.CanvasPoint</a></li>
  <li><a href="../modules/Duplex.ControlMap.html">Duplex.ControlMap</a></li>
  <li><a href="../modules/Duplex.Device.html">Duplex.Device</a></li>
  <li><a href="../modules/Duplex.Display.html">Duplex.Display</a></li>
  <li><a href="../modules/Duplex.Globals.html">Duplex.Globals</a></li>
  <li><a href="../modules/Duplex.Message.html">Duplex.Message</a></li>
  <li><a href="../modules/Duplex.MessageStream.html">Duplex.MessageStream</a></li>
  <li><a href="../modules/Duplex.MidiDevice.html">Duplex.MidiDevice</a></li>
  <li><a href="../modules/Duplex.OscClient.html">Duplex.OscClient</a></li>
  <li><a href="../modules/Duplex.OscDevice.html">Duplex.OscDevice</a></li>
  <li><a href="../modules/Duplex.OscVoiceMgr.html">Duplex.OscVoiceMgr</a></li>
  <li><a href="../modules/Duplex.Preferences.html">Duplex.Preferences</a></li>
  <li><a href="../modules/Duplex.ProcessSlicer.html">Duplex.ProcessSlicer</a></li>
  <li><a href="../modules/Duplex.RoamingDSP.html">Duplex.RoamingDSP</a></li>
  <li><a href="../modules/Duplex.Scheduler.html">Duplex.Scheduler</a></li>
  <li><a href="../modules/Duplex.StateController.html">Duplex.StateController</a></li>
  <li><a href="../modules/Duplex.UIButton.html">Duplex.UIButton</a></li>
  <li><a href="../modules/Duplex.UIButtonStrip.html">Duplex.UIButtonStrip</a></li>
  <li><a href="../modules/Duplex.UIComponent.html">Duplex.UIComponent</a></li>
  <li><a href="../modules/Duplex.UIKey.html">Duplex.UIKey</a></li>
  <li><a href="../modules/Duplex.UIKeyPressure.html">Duplex.UIKeyPressure</a></li>
  <li><a href="../modules/Duplex.UILabel.html">Duplex.UILabel</a></li>
  <li><a href="../modules/Duplex.UIPad.html">Duplex.UIPad</a></li>
  <li><a href="../modules/Duplex.UIPitchBend.html">Duplex.UIPitchBend</a></li>
  <li><a href="../modules/Duplex.UISlider.html">Duplex.UISlider</a></li>
  <li><a href="../modules/Duplex.UISpinner.html">Duplex.UISpinner</a></li>
  <li><a href="../modules/Duplex.WidgetHooks.html">Duplex.WidgetHooks</a></li>
  <li><a href="../modules/Duplex.WidgetKeyboard.html">Duplex.WidgetKeyboard</a></li>
  <li><a href="../modules/Duplex.html">Duplex</a></li>
  <li><a href="../modules/main.html">main</a></li>
</ul>

</div>

<div id="content">

<h1>Module <code>Duplex.Applications.Mlrx.Mlrx_track</code></h1>
<p>Mlrx_track - this class represent a logical track in mlrx</p>
<p>

</p>


<h2><a href="#Functions">Functions</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#__init">__init (main)</a></td>
	<td class="summary">Constructor method</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#__tostring">__tostring ()</a></td>
	<td class="summary">Output some debugging info</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#prepare_phrase_recording">prepare_phrase_recording ()</a></td>
	<td class="summary">"record arm" a track - initiate recording once a note is triggered</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#start_phrase_recording">start_phrase_recording ()</a></td>
	<td class="summary">start recording all output into a buffer</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#stop_phrase_recording">stop_phrase_recording ()</a></td>
	<td class="summary">finalize a phrase recording
 1.</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#deserialize_line">deserialize_line (str_ln, target_line)</a></td>
	<td class="summary">this method is the opposite of PatternLine.toString()</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#capture_phrase">capture_phrase ()</a></td>
	<td class="summary">capture a phrase from the currently selected pattern-track</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#select_phrase">select_phrase (phrase)</a></td>
	<td class="summary">activate, select &amp; transpose into phrase</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#sync_track_props">sync_track_props (source, target)</a></td>
	<td class="summary">provided with source, target we make sure that the same number of
 volume/panning/delay and note/effect columns are visible</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#allocate_phrase">allocate_phrase ()</a></td>
	<td class="summary">create room for a newly recorded phrase (lowest non-phrase-mapped note)</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#toggle_phrase_mode">toggle_phrase_mode ()</a></td>
	<td class="summary">toggle between phrase and normal sample playback</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#set_beat_sync">set_beat_sync (val)</a></td>
	<td class="summary">set beat-sync to relative tempo</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#increase_cycle">increase_cycle ()</a></td>
	<td class="summary">increase_cycle</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#decrease_cycle">decrease_cycle ()</a></td>
	<td class="summary">increase_cycle</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#determine_cycle_lines">determine_cycle_lines ()</a></td>
	<td class="summary">update cycle lines to cycle length, custom value etc.</td>
	</tr>
</table>
<h2><a href="#Tables">Tables</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#CYCLE">CYCLE</a></td>
	<td class="summary">(enum)</td>
	</tr>
</table>
<h2><a href="#Fields">Fields</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#self.cycle_length">self.cycle_length</a></td>
	<td class="summary">(Mlrx_track.CYCLE)</td>
	</tr>
</table>

<br/>
<br/>


    <h2><a name="Functions"></a>Functions</h2>
    <dl class="function">
    <dt>
    <a name = "__init"></a>
    <strong>__init (main)</strong>
    </dt>
    <dd>
    Constructor method


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">main</span>
            <span class="types"><a class="type" href="http://www.lua.org/manual/5.1/manual.html#pdf-print">print("Mlrx_track</a></span>
        __init()",main) (Mlrx) reference to main application
        </li>
    </ul>





</dd>
    <dt>
    <a name = "__tostring"></a>
    <strong>__tostring ()</strong>
    </dt>
    <dd>
    Output some debugging info







</dd>
    <dt>
    <a name = "prepare_phrase_recording"></a>
    <strong>prepare_phrase_recording ()</strong>
    </dt>
    <dd>
    "record arm" a track - initiate recording once a note is triggered







</dd>
    <dt>
    <a name = "start_phrase_recording"></a>
    <strong>start_phrase_recording ()</strong>
    </dt>
    <dd>
    start recording all output into a buffer







</dd>
    <dt>
    <a name = "stop_phrase_recording"></a>
    <strong>stop_phrase_recording ()</strong>
    </dt>
    <dd>
    finalize a phrase recording
 1.  allocate a new, single-note phrase to hold the recording
 2. parse the recorded data into this phrase (via coroutine)







</dd>
    <dt>
    <a name = "deserialize_line"></a>
    <strong>deserialize_line (str_ln, target_line)</strong>
    </dt>
    <dd>
    this method is the opposite of PatternLine.toString()


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">str_ln</span>



        </li>
        <li><span class="parameter">target_line</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "capture_phrase"></a>
    <strong>capture_phrase ()</strong>
    </dt>
    <dd>
    capture a phrase from the currently selected pattern-track







</dd>
    <dt>
    <a name = "select_phrase"></a>
    <strong>select_phrase (phrase)</strong>
    </dt>
    <dd>
    activate, select &amp; transpose into phrase


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">phrase</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "sync_track_props"></a>
    <strong>sync_track_props (source, target)</strong>
    </dt>
    <dd>
    provided with source, target we make sure that the same number of
 volume/panning/delay and note/effect columns are visible


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">source</span>
         (renoise.Track or renoise.InstrumentPhrase)
        </li>
        <li><span class="parameter">target</span>
         (renoise.Track or renoise.InstrumentPhrase)
        </li>
    </ul>





</dd>
    <dt>
    <a name = "allocate_phrase"></a>
    <strong>allocate_phrase ()</strong>
    </dt>
    <dd>
    create room for a newly recorded phrase (lowest non-phrase-mapped note)



    <h3>Returns:</h3>
    <ol>

        renoise.InstrumentPhrase or nil if allocation failed
    </ol>




</dd>
    <dt>
    <a name = "toggle_phrase_mode"></a>
    <strong>toggle_phrase_mode ()</strong>
    </dt>
    <dd>
    toggle between phrase and normal sample playback







</dd>
    <dt>
    <a name = "set_beat_sync"></a>
    <strong>set_beat_sync (val)</strong>
    </dt>
    <dd>
    set beat-sync to relative tempo


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">val</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "increase_cycle"></a>
    <strong>increase_cycle ()</strong>
    </dt>
    <dd>
    increase_cycle







</dd>
    <dt>
    <a name = "decrease_cycle"></a>
    <strong>decrease_cycle ()</strong>
    </dt>
    <dd>
    increase_cycle







</dd>
    <dt>
    <a name = "determine_cycle_lines"></a>
    <strong>determine_cycle_lines ()</strong>
    </dt>
    <dd>
    update cycle lines to cycle length, custom value etc.







</dd>
</dl>
    <h2><a name="Tables"></a>Tables</h2>
    <dl class="function">
    <dt>
    <a name = "CYCLE"></a>
    <strong>CYCLE</strong>
    </dt>
    <dd>
    (enum)


    <h3>Fields:</h3>
    <ul>
        <li><span class="parameter">CUSTOM</span>
        1 = custom size (set cycle lines directly)
        </li>
        <li><span class="parameter">EDITSTEP</span>
        0  = sync with edit_step
        </li>
        <li><span class="parameter">FULL</span>



        </li>
        <li><span class="parameter">HALF</span>



        </li>
        <li><span class="parameter">FOURTH</span>



        </li>
        <li><span class="parameter">EIGHTH</span>



        </li>
        <li><span class="parameter">SIXTEENTH</span>



        </li>
    </ul>





</dd>
</dl>
    <h2><a name="Fields"></a>Fields</h2>
    <dl class="function">
    <dt>
    <a name = "self.cycle_length"></a>
    <strong>self.cycle_length</strong>
    </dt>
    <dd>
    (Mlrx_track.CYCLE)







</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
